home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / COSEmulator / COSEmulator- SRC / headers / WindowList.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-21  |  1.4 KB  |  70 lines  |  [TEXT/CWIE]

  1. #ifndef _WindowList_h_
  2. #define _WindowList_h_
  3.  
  4. #include "LinkedList.h"
  5. #include "Window.h"
  6.  
  7. class    NormalWindowList : public LinkListClass< Window >
  8. {
  9. public:
  10.     NormalWindowList( void );
  11.     
  12.     void    AddWindow( Window *w );
  13.     void    RemoveWindow( Window *w );
  14.     void    DrawAll( rect *where );
  15.     
  16.     Boolean    HandleMouseClick( Boolean down , point where );
  17.     void    HandleMouseMove( point where );
  18.     
  19.     void    SetBackGround( Boolean b );
  20.     
  21. private:
  22.     Boolean    HandleMouseDown( point where );
  23.     void    HandleMouseUp( point where );
  24.     
  25.     Boolean    backGround;
  26. };
  27.  
  28. class    FrontWindowList : public LinkListClass< Window >
  29. {
  30. public:
  31.     FrontWindowList( void );
  32.     
  33.     void    AddWindow( Window *w );
  34.     void    RemoveWindow( Window *w );
  35.     void    DrawAll( rect *where );
  36.     
  37.     Boolean    HandleMouseClick( Boolean down , point where );
  38.     void    HandleMouseMove( point where );
  39.     
  40.     void    SetBackGround( Boolean b );
  41.     
  42. private:
  43.     Boolean    HandleMouseDown( point where );
  44.     void    HandleMouseUp( point where );
  45.     
  46.     Boolean    backGround;
  47. };
  48.  
  49. class    MenuWindowList : public LinkListClass< Window >
  50. {
  51. public:
  52.     MenuWindowList( void );
  53.     
  54.     void    AddWindow( Window *w );
  55.     void    RemoveWindow( Window *w );
  56.     void    DrawAll( rect *where );
  57.     
  58.     Boolean    HandleMouseClick( Boolean down , point where );
  59.     void    HandleMouseMove( point where );
  60.     
  61.     void    SetBackGround( Boolean b );
  62.     
  63. private:
  64.     Boolean    HandleMouseDown( point where );
  65.     void    HandleMouseUp( point where );
  66.     
  67.     Boolean    backGround;
  68. };
  69.  
  70. #endif